apiVersion: logging.kubesphere.io/v1alpha2
kind: Filter
metadata:
  name: filter-events
  namespace: kubesphere-logging-system
  labels:
    logging.kubesphere.io/enabled: "true"
    logging.kubesphere.io/component: "events"
spec:
  match: kube_events
  filters:
    - parser:
{% if (logging_container_runtime== 'containerd') or (logging_container_runtime== 'crio') %}
        keyName: message
{% else %}
        keyName: log
{% endif %}
        parser: json